package com.century.sjt.util;

import android.app.Dialog;
import android.content.Context;
import android.widget.TextView;

import com.century.sjt.R;

/**
 * Created by luodong on 16/5/30.
 */
public class TextDialog {

    private Context mContext;
    private Dialog mDialog;
    private TextView tvTip;

    public TextDialog(Context context)
    {
        mContext = context;
    }

    public Dialog loadDialog()
    {
        mDialog = new Dialog(mContext, R.style.Transparent);
        mDialog.setContentView(R.layout.dialog_loading);
        tvTip = (TextView) mDialog.findViewById(R.id.tv_tip);
        return mDialog;
    }

    public void removeDialog()
    {
        mDialog.dismiss();
    }

    public void setTvTip(String string){
        tvTip.setText(string+"");
    }
}
